package com.app.car.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.app.car.R;

import java.util.ArrayList;
import java.util.List;

public class MenuBean extends BasisBean {
	@JSONField(name = "id")
	private String id;
	@JSONField(name = "mna")
	private String mna;
	@JSONField(name = "sna")
	private String sna;
	@JSONField(name = "sele")
	private boolean sele;
	@JSONField(name = "path")
	private String path;
	@JSONField(name = "child")
	private List<MenuBean> child = new ArrayList<>();

	public String getMna() {
		return mna;
	}

	public void setMna(String mna) {
		this.mna = mna;
	}

	public boolean isSele() {
		return sele;
	}

	public void setSele(boolean sele) {
		this.sele = sele;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<MenuBean> getChild() {
		return child;
	}

	public void setChild(List<MenuBean> child) {
		this.child = child;
	}

	public String getSna() {
		return sna;
	}

	public void setSna(String sna) {
		this.sna = sna;
	}

	public int getBackGround(int position){
		switch (position){
			case 0:
				return R.drawable.home_index_btn_bg5;
			case 1:
				return R.drawable.home_index_btn_bg2;
			case 2:
				return R.drawable.home_index_btn_bg3;
			case 3:
				return R.drawable.home_index_btn_bg4;
			default:
				return R.drawable.home_index_btn_bg1;
		}
	}


}
